define
(
    function()
    {        
        return function()
        {
            var request = require("request");

            this.handleRequest = function(req, res, config)
            {
                var streamUrl = req.url.replace("/stream/", "");
                request.get(streamUrl).pipe(res);
            }
        }        
    }
);